import request from '@/utils/request'

// 查询叙词引用关系列表
export function listThesauriWordReference(query) {
  return request({
    url: '/system/thesauriWordReference/list',
    method: 'get',
    params: query
  })
}

// 查询叙词引用关系详细
export function getThesauriWordReference(id) {
  return request({
    url: '/system/thesauriWordReference/' + id,
    method: 'get'
  })
}

// 新增叙词引用关系
export function addThesauriWordReference(data) {
  return request({
    url: '/system/thesauriWordReference',
    method: 'post',
    data: data
  })
}

// 新增叙词引用关系
export function addThesauriWordReferenceMultivalued(data) {
    return request({
        url: '/system/thesauriWordReference/multivalued',
        method: 'post',
        data: data
    })
}

// 修改叙词引用关系
export function updateThesauriWordReference(data) {
  return request({
    url: '/system/thesauriWordReference',
    method: 'put',
    data: data
  })
}

// 删除叙词引用关系
export function delThesauriWordReference(id) {
  return request({
    url: '/system/thesauriWordReference/' + id,
    method: 'delete'
  })
}

// 导出叙词引用关系
export function exportThesauriWordReference(query) {
  return request({
    url: '/system/thesauriWordReference/export',
    method: 'get',
    params: query
  })
}
